import App from './App'
import { globalMixin } from "@/common/js/mixin.js"
// 未登录拦截
// import interceptor from '@/common/utils/interceptor.js'
// Vue.use(interceptor)
Vue.mixin(globalMixin)
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
// 如此配置即可
uni.$u.config.unit = 'rpx'
// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
// import httpInterceptor from '@/common/request/http.interceptor.js';
// Vue.use(httpInterceptor, app);
// http接口API抽离，免于写url或者一些固定的参数
import httpApi from '@/common/request/http.api.js';
Vue.use(httpApi, app);
app.$mount()
// import dialog from '@/wxcomponents/@vant/weapp/dialog/dialog';
// Vue.prototype.$dialog = dialog
// import toast from '@/wxcomponents/@vant/weapp/toast/toast';
// Vue.prototype.$toast = toast

import gePage from '@/components/ge-page/ge-page.vue';
Vue.component('ge-page', gePage)

import geUni from '@/common/js/ge-uni.js';

Vue.use(geUni);
